Integrand size = 31, antiderivative size = 994 \[ \int \frac {\sqrt {f+g x}}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=-\frac {e \sqrt {f+g x} \sqrt {a+b x+c x^2}}{\left (c d^2-b d e+a e^2\right ) (d+e x)}+\frac {\sqrt {b^2-4 a c} \sqrt {f+g x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\arcsin \left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{\sqrt {2} \left (c d^2-b d e+a e^2\right ) \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {a+b x+c x^2}}-\frac {\sqrt {2} \sqrt {b^2-4 a c} f \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{\left (c d^2-b d e+a e^2\right ) \sqrt {f+g x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2} \sqrt {b^2-4 a c} d g \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{e \left (c d^2-b d e+a e^2\right ) \sqrt {f+g x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g} \left (e^2 (b f-a g)-c d (2 e f-d g)\right ) \sqrt {1-\frac {2 c (f+g x)}{2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}} \sqrt {1-\frac {2 c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \operatorname {EllipticPi}\left (\frac {e \left (2 c f-b g+\sqrt {b^2-4 a c} g\right )}{2 c (e f-d g)},\arcsin \left (\frac {\sqrt {2} \sqrt {c} \sqrt {f+g x}}{\sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}}\right ),\frac {b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}}{b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}}\right )}{\sqrt {2} \sqrt {c} e \left (c d^2-b d e+a e^2\right ) (e f-d g) \sqrt {a+b x+c x^2}} \]
[Out]
Time = 2.18 (sec) , antiderivative size = 994, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.323, Rules used = {959, 6874, 732, 430, 857, 435, 948, 175, 552, 551} \[ \int \frac {\sqrt {f+g x}}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=-\frac {\sqrt {f+g x} \sqrt {c x^2+b x+a} e}{\left (c d^2-b e d+a e^2\right ) (d+e x)}+\frac {\sqrt {b^2-4 a c} \sqrt {f+g x} \sqrt {-\frac {c \left (c x^2+b x+a\right )}{b^2-4 a c}} E\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{\sqrt {2} \left (c d^2-b e d+a e^2\right ) \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {c x^2+b x+a}}-\frac {\sqrt {2} \sqrt {b^2-4 a c} f \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (c x^2+b x+a\right )}{b^2-4 a c}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{\left (c d^2-b e d+a e^2\right ) \sqrt {f+g x} \sqrt {c x^2+b x+a}}+\frac {\sqrt {2} \sqrt {b^2-4 a c} d g \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (c x^2+b x+a\right )}{b^2-4 a c}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {b+2 c x+\sqrt {b^2-4 a c}}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right ),-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{\left (c d^2-b e d+a e^2\right ) \sqrt {f+g x} \sqrt {c x^2+b x+a} e}+\frac {\sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g} \left (e^2 (b f-a g)-c d (2 e f-d g)\right ) \sqrt {1-\frac {2 c (f+g x)}{2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}} \sqrt {1-\frac {2 c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \operatorname {EllipticPi}\left (\frac {e \left (2 c f-b g+\sqrt {b^2-4 a c} g\right )}{2 c (e f-d g)},\arcsin \left (\frac {\sqrt {2} \sqrt {c} \sqrt {f+g x}}{\sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}}\right ),\frac {b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}}{b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}}\right )}{\sqrt {2} \sqrt {c} \left (c d^2-b e d+a e^2\right ) (e f-d g) \sqrt {c x^2+b x+a} e} \]
[In]
[Out]
Rule 175
Rule 430
Rule 435
Rule 551
Rule 552
Rule 732
Rule 857
Rule 948
Rule 959
Rule 6874
Rubi steps \begin{align*} \text {integral}& = -\frac {e \sqrt {f+g x} \sqrt {a+b x+c x^2}}{\left (c d^2-b d e+a e^2\right ) (d+e x)}-\frac {\int \frac {-2 c d f+b e f-a e g-2 c d g x-c e g x^2}{(d+e x) \sqrt {f+g x} \sqrt {a+b x+c x^2}} \, dx}{2 \left (c d^2-b d e+a e^2\right )} \\ & = -\frac {e \sqrt {f+g x} \sqrt {a+b x+c x^2}}{\left (c d^2-b d e+a e^2\right ) (d+e x)}-\frac {\int \left (-\frac {c d g}{e \sqrt {f+g x} \sqrt {a+b x+c x^2}}-\frac {c g x}{\sqrt {f+g x} \sqrt {a+b x+c x^2}}+\frac {e^2 (b f-a g)-c d (2 e f-d g)}{e (d+e x) \sqrt {f+g x} \sqrt {a+b x+c x^2}}\right ) \, dx}{2 \left (c d^2-b d e+a e^2\right )} \\ & = -\frac {e \sqrt {f+g x} \sqrt {a+b x+c x^2}}{\left (c d^2-b d e+a e^2\right ) (d+e x)}+\frac {(c g) \int \frac {x}{\sqrt {f+g x} \sqrt {a+b x+c x^2}} \, dx}{2 \left (c d^2-b d e+a e^2\right )}+\frac {(c d g) \int \frac {1}{\sqrt {f+g x} \sqrt {a+b x+c x^2}} \, dx}{2 e \left (c d^2-b d e+a e^2\right )}-\frac {\left (e^2 (b f-a g)-c d (2 e f-d g)\right ) \int \frac {1}{(d+e x) \sqrt {f+g x} \sqrt {a+b x+c x^2}} \, dx}{2 e \left (c d^2-b d e+a e^2\right )} \\ & = -\frac {e \sqrt {f+g x} \sqrt {a+b x+c x^2}}{\left (c d^2-b d e+a e^2\right ) (d+e x)}+\frac {c \int \frac {\sqrt {f+g x}}{\sqrt {a+b x+c x^2}} \, dx}{2 \left (c d^2-b d e+a e^2\right )}-\frac {(c f) \int \frac {1}{\sqrt {f+g x} \sqrt {a+b x+c x^2}} \, dx}{2 \left (c d^2-b d e+a e^2\right )}-\frac {\left (\left (e^2 (b f-a g)-c d (2 e f-d g)\right ) \sqrt {b-\sqrt {b^2-4 a c}+2 c x} \sqrt {b+\sqrt {b^2-4 a c}+2 c x}\right ) \int \frac {1}{\sqrt {b-\sqrt {b^2-4 a c}+2 c x} \sqrt {b+\sqrt {b^2-4 a c}+2 c x} (d+e x) \sqrt {f+g x}} \, dx}{2 e \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}+\frac {\left (\sqrt {2} \sqrt {b^2-4 a c} d g \sqrt {\frac {c (f+g x)}{2 c f-b g-\sqrt {b^2-4 a c} g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {1+\frac {2 \sqrt {b^2-4 a c} g x^2}{2 c f-b g-\sqrt {b^2-4 a c} g}}} \, dx,x,\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )}{e \left (c d^2-b d e+a e^2\right ) \sqrt {f+g x} \sqrt {a+b x+c x^2}} \\ & = -\frac {e \sqrt {f+g x} \sqrt {a+b x+c x^2}}{\left (c d^2-b d e+a e^2\right ) (d+e x)}+\frac {\sqrt {2} \sqrt {b^2-4 a c} d g \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{e \left (c d^2-b d e+a e^2\right ) \sqrt {f+g x} \sqrt {a+b x+c x^2}}+\frac {\left (\left (e^2 (b f-a g)-c d (2 e f-d g)\right ) \sqrt {b-\sqrt {b^2-4 a c}+2 c x} \sqrt {b+\sqrt {b^2-4 a c}+2 c x}\right ) \text {Subst}\left (\int \frac {1}{\left (e f-d g-e x^2\right ) \sqrt {b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}+\frac {2 c x^2}{g}} \sqrt {b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}+\frac {2 c x^2}{g}}} \, dx,x,\sqrt {f+g x}\right )}{e \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}}+\frac {\left (\sqrt {b^2-4 a c} \sqrt {f+g x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}}\right ) \text {Subst}\left (\int \frac {\sqrt {1+\frac {2 \sqrt {b^2-4 a c} g x^2}{2 c f-b g-\sqrt {b^2-4 a c} g}}}{\sqrt {1-x^2}} \, dx,x,\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )}{\sqrt {2} \left (c d^2-b d e+a e^2\right ) \sqrt {\frac {c (f+g x)}{2 c f-b g-\sqrt {b^2-4 a c} g}} \sqrt {a+b x+c x^2}}-\frac {\left (\sqrt {2} \sqrt {b^2-4 a c} f \sqrt {\frac {c (f+g x)}{2 c f-b g-\sqrt {b^2-4 a c} g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {1+\frac {2 \sqrt {b^2-4 a c} g x^2}{2 c f-b g-\sqrt {b^2-4 a c} g}}} \, dx,x,\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )}{\left (c d^2-b d e+a e^2\right ) \sqrt {f+g x} \sqrt {a+b x+c x^2}} \\ & = -\frac {e \sqrt {f+g x} \sqrt {a+b x+c x^2}}{\left (c d^2-b d e+a e^2\right ) (d+e x)}+\frac {\sqrt {b^2-4 a c} \sqrt {f+g x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{\sqrt {2} \left (c d^2-b d e+a e^2\right ) \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {a+b x+c x^2}}-\frac {\sqrt {2} \sqrt {b^2-4 a c} f \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{\left (c d^2-b d e+a e^2\right ) \sqrt {f+g x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2} \sqrt {b^2-4 a c} d g \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{e \left (c d^2-b d e+a e^2\right ) \sqrt {f+g x} \sqrt {a+b x+c x^2}}+\frac {\left (\left (e^2 (b f-a g)-c d (2 e f-d g)\right ) \sqrt {b+\sqrt {b^2-4 a c}+2 c x} \sqrt {1+\frac {2 c (f+g x)}{\left (b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}\right ) g}}\right ) \text {Subst}\left (\int \frac {1}{\left (e f-d g-e x^2\right ) \sqrt {b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}+\frac {2 c x^2}{g}} \sqrt {1+\frac {2 c x^2}{\left (b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}\right ) g}}} \, dx,x,\sqrt {f+g x}\right )}{e \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}} \\ & = -\frac {e \sqrt {f+g x} \sqrt {a+b x+c x^2}}{\left (c d^2-b d e+a e^2\right ) (d+e x)}+\frac {\sqrt {b^2-4 a c} \sqrt {f+g x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{\sqrt {2} \left (c d^2-b d e+a e^2\right ) \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {a+b x+c x^2}}-\frac {\sqrt {2} \sqrt {b^2-4 a c} f \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{\left (c d^2-b d e+a e^2\right ) \sqrt {f+g x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2} \sqrt {b^2-4 a c} d g \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{e \left (c d^2-b d e+a e^2\right ) \sqrt {f+g x} \sqrt {a+b x+c x^2}}+\frac {\left (\left (e^2 (b f-a g)-c d (2 e f-d g)\right ) \sqrt {1+\frac {2 c (f+g x)}{\left (b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}\right ) g}} \sqrt {1+\frac {2 c (f+g x)}{\left (b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}\right ) g}}\right ) \text {Subst}\left (\int \frac {1}{\left (e f-d g-e x^2\right ) \sqrt {1+\frac {2 c x^2}{\left (b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}\right ) g}} \sqrt {1+\frac {2 c x^2}{\left (b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}\right ) g}}} \, dx,x,\sqrt {f+g x}\right )}{e \left (c d^2-b d e+a e^2\right ) \sqrt {a+b x+c x^2}} \\ & = -\frac {e \sqrt {f+g x} \sqrt {a+b x+c x^2}}{\left (c d^2-b d e+a e^2\right ) (d+e x)}+\frac {\sqrt {b^2-4 a c} \sqrt {f+g x} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{\sqrt {2} \left (c d^2-b d e+a e^2\right ) \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {a+b x+c x^2}}-\frac {\sqrt {2} \sqrt {b^2-4 a c} f \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{\left (c d^2-b d e+a e^2\right ) \sqrt {f+g x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2} \sqrt {b^2-4 a c} d g \sqrt {\frac {c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \sqrt {-\frac {c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x}{\sqrt {b^2-4 a c}}}}{\sqrt {2}}\right )|-\frac {2 \sqrt {b^2-4 a c} g}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}\right )}{e \left (c d^2-b d e+a e^2\right ) \sqrt {f+g x} \sqrt {a+b x+c x^2}}+\frac {\sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g} \left (e^2 (b f-a g)-c d (2 e f-d g)\right ) \sqrt {1-\frac {2 c (f+g x)}{2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}} \sqrt {1-\frac {2 c (f+g x)}{2 c f-\left (b+\sqrt {b^2-4 a c}\right ) g}} \Pi \left (\frac {e \left (2 c f-b g+\sqrt {b^2-4 a c} g\right )}{2 c (e f-d g)};\sin ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {f+g x}}{\sqrt {2 c f-\left (b-\sqrt {b^2-4 a c}\right ) g}}\right )|\frac {b-\sqrt {b^2-4 a c}-\frac {2 c f}{g}}{b+\sqrt {b^2-4 a c}-\frac {2 c f}{g}}\right )}{\sqrt {2} \sqrt {c} e \left (c d^2-b d e+a e^2\right ) (e f-d g) \sqrt {a+b x+c x^2}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 34.19 (sec) , antiderivative size = 1502, normalized size of antiderivative = 1.51 \[ \int \frac {\sqrt {f+g x}}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=-\frac {e \sqrt {f+g x} \left (a+b x+c x^2\right )}{\left (c d^2-b d e+a e^2\right ) (d+e x) \sqrt {a+x (b+c x)}}-\frac {(f+g x)^{3/2} \sqrt {a+b x+c x^2} \left (-4 e (-e f+d g) \sqrt {\frac {c f^2+g (-b f+a g)}{-2 c f+b g+\sqrt {\left (b^2-4 a c\right ) g^2}}} \left (c \left (-1+\frac {f}{f+g x}\right )^2+\frac {g \left (b-\frac {b f}{f+g x}+\frac {a g}{f+g x}\right )}{f+g x}\right )+\frac {i \sqrt {2} e (-e f+d g) \left (2 c f-b g+\sqrt {\left (b^2-4 a c\right ) g^2}\right ) \sqrt {\frac {\sqrt {\left (b^2-4 a c\right ) g^2}-\frac {2 a g^2}{f+g x}-2 c f \left (-1+\frac {f}{f+g x}\right )+b g \left (-1+\frac {2 f}{f+g x}\right )}{2 c f-b g+\sqrt {\left (b^2-4 a c\right ) g^2}}} \sqrt {\frac {\sqrt {\left (b^2-4 a c\right ) g^2}+\frac {2 a g^2}{f+g x}+2 c f \left (-1+\frac {f}{f+g x}\right )+b \left (g-\frac {2 f g}{f+g x}\right )}{-2 c f+b g+\sqrt {\left (b^2-4 a c\right ) g^2}}} E\left (i \text {arcsinh}\left (\frac {\sqrt {2} \sqrt {\frac {c f^2-b f g+a g^2}{-2 c f+b g+\sqrt {\left (b^2-4 a c\right ) g^2}}}}{\sqrt {f+g x}}\right )|-\frac {-2 c f+b g+\sqrt {\left (b^2-4 a c\right ) g^2}}{2 c f-b g+\sqrt {\left (b^2-4 a c\right ) g^2}}\right )}{\sqrt {f+g x}}-\frac {i \sqrt {2} e \left (2 c d f g+2 a e g^2-e f \sqrt {\left (b^2-4 a c\right ) g^2}+d g \sqrt {\left (b^2-4 a c\right ) g^2}-b g (e f+d g)\right ) \sqrt {\frac {\sqrt {\left (b^2-4 a c\right ) g^2}-\frac {2 a g^2}{f+g x}-2 c f \left (-1+\frac {f}{f+g x}\right )+b g \left (-1+\frac {2 f}{f+g x}\right )}{2 c f-b g+\sqrt {\left (b^2-4 a c\right ) g^2}}} \sqrt {\frac {\sqrt {\left (b^2-4 a c\right ) g^2}+\frac {2 a g^2}{f+g x}+2 c f \left (-1+\frac {f}{f+g x}\right )+b \left (g-\frac {2 f g}{f+g x}\right )}{-2 c f+b g+\sqrt {\left (b^2-4 a c\right ) g^2}}} \operatorname {EllipticF}\left (i \text {arcsinh}\left (\frac {\sqrt {2} \sqrt {\frac {c f^2-b f g+a g^2}{-2 c f+b g+\sqrt {\left (b^2-4 a c\right ) g^2}}}}{\sqrt {f+g x}}\right ),-\frac {-2 c f+b g+\sqrt {\left (b^2-4 a c\right ) g^2}}{2 c f-b g+\sqrt {\left (b^2-4 a c\right ) g^2}}\right )}{\sqrt {f+g x}}-\frac {2 i \sqrt {2} g \left (e^2 (b f-a g)+c d (-2 e f+d g)\right ) \sqrt {\frac {\sqrt {\left (b^2-4 a c\right ) g^2}-\frac {2 a g^2}{f+g x}-2 c f \left (-1+\frac {f}{f+g x}\right )+b g \left (-1+\frac {2 f}{f+g x}\right )}{2 c f-b g+\sqrt {\left (b^2-4 a c\right ) g^2}}} \sqrt {\frac {\sqrt {\left (b^2-4 a c\right ) g^2}+\frac {2 a g^2}{f+g x}+2 c f \left (-1+\frac {f}{f+g x}\right )+b \left (g-\frac {2 f g}{f+g x}\right )}{-2 c f+b g+\sqrt {\left (b^2-4 a c\right ) g^2}}} \operatorname {EllipticPi}\left (\frac {(e f-d g) \left (2 c f-b g-\sqrt {\left (b^2-4 a c\right ) g^2}\right )}{2 e \left (c f^2+g (-b f+a g)\right )},i \text {arcsinh}\left (\frac {\sqrt {2} \sqrt {\frac {c f^2-b f g+a g^2}{-2 c f+b g+\sqrt {\left (b^2-4 a c\right ) g^2}}}}{\sqrt {f+g x}}\right ),-\frac {-2 c f+b g+\sqrt {\left (b^2-4 a c\right ) g^2}}{2 c f-b g+\sqrt {\left (b^2-4 a c\right ) g^2}}\right )}{\sqrt {f+g x}}\right )}{4 e \left (c d^2-b d e+a e^2\right ) g (-e f+d g) \sqrt {\frac {c f^2+g (-b f+a g)}{-2 c f+b g+\sqrt {\left (b^2-4 a c\right ) g^2}}} \sqrt {a+x (b+c x)} \sqrt {\frac {(f+g x)^2 \left (c \left (-1+\frac {f}{f+g x}\right )^2+\frac {g \left (b-\frac {b f}{f+g x}+\frac {a g}{f+g x}\right )}{f+g x}\right )}{g^2}}} \]
[In]
[Out]
Time = 3.47 (sec) , antiderivative size = 1229, normalized size of antiderivative = 1.24
method | result | size |
elliptic | \(\text {Expression too large to display}\) | \(1229\) |
default | \(\text {Expression too large to display}\) | \(13017\) |
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {f+g x}}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\sqrt {f+g x}}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=\int \frac {\sqrt {f + g x}}{\left (d + e x\right )^{2} \sqrt {a + b x + c x^{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {f+g x}}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=\int { \frac {\sqrt {g x + f}}{\sqrt {c x^{2} + b x + a} {\left (e x + d\right )}^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {f+g x}}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=\int { \frac {\sqrt {g x + f}}{\sqrt {c x^{2} + b x + a} {\left (e x + d\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {f+g x}}{(d+e x)^2 \sqrt {a+b x+c x^2}} \, dx=\int \frac {\sqrt {f+g\,x}}{{\left (d+e\,x\right )}^2\,\sqrt {c\,x^2+b\,x+a}} \,d x \]
[In]
[Out]